
package org.come.Jpanel;

import com.tool.btn.LingbaoPagingBtn;
import com.tool.role.ExpUtil;
import com.tool.role.RoleLingFa;
import com.tool.tcpimg.ChatBox;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.LayoutManager;
import java.awt.image.ImageObserver;
import java.math.BigDecimal;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

import com.tool.tcpimg.UIUtils;
import com.updateNew.MyIsif;

import org.come.entity.Goodstable;
import org.come.model.Lingbao;
import org.come.mouslisten.LingFaFanYeMouslisten;
import org.come.mouslisten.LingFaFuSkill;
import org.come.until.GoodsListFromServerUntil;
import org.come.until.UserData;

 


public class LingbaoAttributeJpanel extends JPanel {
    private JLabel labLingbao;
    private JLabel labQuality;
    private JLabel labCurrentlel;
    private JLabel labAttribute;
    private JLabel labResistance;
    //    private final LingbaoPagingBtn btnLock;
//    private final LingbaoPagingBtn btnUnlock;
    private final LingbaoPagingBtn btnDelete;
    private final LingbaoPagingBtn btnBreak;
    private final LingbaoPagingBtn btnTransformation;
    private final LingbaoPagingBtn btnLast1;
    private final LingbaoPagingBtn btnNext1;
    private final LingbaoPagingBtn btnLast2;
    private final LingbaoPagingBtn btnNext2;
    private LingbaoPagingBtn btnGevPal;
    private JLabel[] RuneListLabel = new JLabel[5];
    private JLabel[] SkillsListLabel = new JLabel[5];
    private JLabel[] LingbaoListLabel = new JLabel[8];
    private JLabel[] MagicListLabel = new JLabel[8];
    private int Flag = 0;
    private int Flag1 = 0;
    private final int count = 1;
    private int count1 = 1;
    private ChatBox box = new ChatBox();
    private ChatBox zsbox = new ChatBox();
    private int boxx;
    private int boxy;
    private int boxw;
    private int boxh;
    private final ImageIcon fushiimg = new ImageIcon("inkImg/old/lingbao/msg/圆封.png");
    private final ImageIcon skillimg = new ImageIcon("inkImg/old/lingbao/msg/封.png");
    private ImageIcon icon;
    private ImageIcon lingimg;
    private final ImageIcon dian = new ImageIcon("inkImg/old/lingbao/msg/dian.png");
    private int s = 0;
    private int w = 0;

    public LingbaoAttributeJpanel() {
        if ("水墨UI".equals(MyIsif.getStyle())) {
            this.setPreferredSize(new Dimension(538, 469));
            this.setLayout(null);
            this.setBackground(UIUtils.Color_BACK);
            //品质
            this.labQuality = new JLabel();
            this.labQuality.setBounds(183, 218, 64, 17);
            this.labQuality.setForeground(Color.ORANGE);
            this.labQuality.setFont(new Font("微软雅黑", 0, 12));
            this.add(this.labQuality);
            //等级
            this.labCurrentlel = new JLabel();
            this.labCurrentlel.setBounds(180, 250, 68, 16);
            this.labCurrentlel.setForeground(Color.WHITE);
            this.labCurrentlel.setFont(new Font("微软雅黑", 0, 14));
            this.add(this.labCurrentlel);
            this.labLingbao = new JLabel();
            this.labLingbao.setBounds(90, 97, 134, 154);
            this.add(this.labLingbao);
            //this.btnLock = new LingbaoPagingBtn("inkImg/hongmu/2/27_png.button.btn_unlock.png", 1, 9, null);
            //this.btnLock.setBounds(113, 212, 17, 18);
            //this.add(this.btnLock);
            //this.btnUnlock = new LingbaoPagingBtn("inkImg/hongmu/2/25_png.button.btn_lock.png", 1, 8, null);
            //this.btnUnlock.setBounds(137, 212, 17, 18);
            //this.add(this.btnUnlock);
            this.btnDelete = new LingbaoPagingBtn("skin/8100226/newbutton/B20.png", 1, UIUtils.COLOR_WHITE2, UIUtils.TEXT_HY88, 5, "删 除");
            this.btnDelete.setBounds(107, 297, 59, 24);
            this.add(this.btnDelete);
            this.btnBreak = new LingbaoPagingBtn("skin/8100226/newbutton/B20.png", 1, UIUtils.COLOR_WHITE2, UIUtils.TEXT_HY88, 10, "突 破");
            this.btnBreak.setBounds(190, 297, 59, 24);
            this.add(this.btnBreak);
            this.btnTransformation = new LingbaoPagingBtn("skin/8100226/newbutton/B30.png", 1, 4, "转换");
            this.btnTransformation.setBounds(465, 162, 34, 17);
            this.add(this.btnTransformation);

            this.labAttribute = new JLabel();
            this.labAttribute.setBounds(298, 75, 194, 74);
            this.add(this.labAttribute);
            //抗性
            this.labResistance = new JLabel();
            this.labResistance.setBounds(353, 162, 116, 16);
            this.labResistance.setForeground(Color.YELLOW);
            this.labResistance.setFont(new Font("微软雅黑", 0, 14));
            this.add(this.labResistance);
            this.add(this.labResistance);this.btnGevPal = new LingbaoPagingBtn("skin/8100226/newbutton/B22.png", 1, UIUtils.COLOR_BLACK, UIUtils.TEXT_HY88,11, "装备伙伴");
            this.btnGevPal.setBounds(135, 47, 110, 30);
            this.add(this.btnGevPal);
            int i;
            for (i = 0; i < 5; ++i) {
                this.RuneListLabel[i] = new JLabel();
                this.RuneListLabel[i].addMouseListener(new LingFaFuSkill(true, i));
                this.RuneListLabel[i].setIcon(this.fushiimg);
                this.SkillsListLabel[i] = new JLabel();
                this.SkillsListLabel[i].addMouseListener(new LingFaFuSkill(false, i));
                this.SkillsListLabel[i].setIcon(this.skillimg);
                if (this.Flag < 5 && this.count == 1) {
                    if (i == 4) {
                        this.RuneListLabel[i].setBounds(313 + this.Flag * 37, 215, 27, 27);
                    } else {
                        this.RuneListLabel[i].setBounds(313 + this.Flag * 37, 215, 27, 27);
                    }

                    this.SkillsListLabel[i].setBounds(310 + this.Flag * 39, 284, 28, 28);
                    ++this.Flag;
                    this.add(this.RuneListLabel[i]);
                    this.add(this.SkillsListLabel[i]);
                }
            }
            this.btnLast1 = new LingbaoPagingBtn("skin/8100226/button/10.png", 1, 0, null);
            this.btnLast1.setBounds(215, 435, 20, 21);
            this.add(this.btnLast1);
            this.btnNext1 = new LingbaoPagingBtn("skin/8100226/button/9.png", 1, 1, null);
            this.btnNext1.setBounds(235, 435, 20, 21);
            this.add(this.btnNext1);
            this.btnLast2 = new LingbaoPagingBtn("skin/8100226/button/10.png", 1, 2, null);
            this.btnLast2.setBounds(447, 435, 20, 21);
            this.add(this.btnLast2);
            this.btnNext2 = new LingbaoPagingBtn("skin/8100226/button/9.png", 1, 3, null);
            this.btnNext2.setBounds(467, 435, 20, 21);
            this.add(this.btnNext2);
            for (i = 0; i < 8; ++i) {
                this.LingbaoListLabel[i] = new JLabel();
                this.MagicListLabel[i] = new JLabel();
                if (this.Flag1 < 4 && this.count1 == 1) {
                    this.LingbaoListLabel[i].setBounds(75 + this.Flag1 * 51, 333, 48, 48);
                    this.LingbaoListLabel[i].addMouseListener(new LingFaFanYeMouslisten(true, i));
                    this.MagicListLabel[i].setBounds(306 + this.Flag1 * 51, 333, 48, 48);
                    this.MagicListLabel[i].addMouseListener(new LingFaFanYeMouslisten(false, i));
                    ++this.Flag1;
                    this.add(this.LingbaoListLabel[i]);
                    this.add(this.MagicListLabel[i]);
                }

                if (this.Flag1 < 4 && this.count1 == 2) {
                    this.LingbaoListLabel[i].setBounds(75 + this.Flag1 * 51, 381, 48, 48);
                    this.LingbaoListLabel[i].addMouseListener(new LingFaFanYeMouslisten(true, i));
                    this.MagicListLabel[i].setBounds(306 + this.Flag1 * 51, 381, 48, 48);
                    this.MagicListLabel[i].addMouseListener(new LingFaFanYeMouslisten(false, i));
                    ++this.Flag1;
                    this.add(this.LingbaoListLabel[i]);
                    this.add(this.MagicListLabel[i]);
                } else if (this.Flag1 == 4) {
                    this.Flag1 = 0;
                    ++this.count1;
                }
            }
        } else {
            this.setPreferredSize(new Dimension(512, 496));
            this.setLayout(null);
            this.setBackground(Color.BLACK);
            this.labQuality = new JLabel();
            this.labQuality.setBounds(153, 234, 64, 17);
            this.labQuality.setForeground(Color.ORANGE);
            this.labQuality.setFont(new Font("微软雅黑", 0, 12));
            this.add(this.labQuality);
            this.labCurrentlel = new JLabel();
            this.labCurrentlel.setBounds(162, 266, 68, 16);
            this.labCurrentlel.setForeground(Color.WHITE);
            this.labCurrentlel.setFont(new Font("微软雅黑", 0, 14));
            this.add(this.labCurrentlel);
            this.labLingbao = new JLabel();
            this.labLingbao.setBounds(90, 97, 134, 154);
            this.add(this.labLingbao);
//            this.btnLock = new LingbaoPagingBtn("inkImg/hongmu/2/27_png.button.btn_unlock.png", 1, 9, null);
//            this.btnLock.setBounds(113, 212, 17, 18);
//            this.add(this.btnLock);
//            this.btnUnlock = new LingbaoPagingBtn("inkImg/hongmu/2/25_png.button.btn_lock.png", 1, 8, null);
//            this.btnUnlock.setBounds(137, 212, 17, 18);
//            this.add(this.btnUnlock);
            this.btnDelete = new LingbaoPagingBtn("inkImg/hongmu/1/6026.png", 1, UIUtils.COLOR_BTNPUTONG2, UIUtils.TEXT_HY88, 5, "删 除");
            this.btnDelete.setBounds(82, 309, 60, 26);
            this.add(this.btnDelete);
            this.btnBreak = new LingbaoPagingBtn("inkImg/hongmu/1/6026.png", 1, UIUtils.COLOR_BTNPUTONG2, UIUtils.TEXT_HY88, 10, "突 破");
            this.btnBreak.setBounds(165, 309, 60, 26);
            this.add(this.btnBreak);
            this.btnTransformation = new LingbaoPagingBtn("inkImg/hongmu/1/B30h.png", 1, 4, "转换");
            this.btnTransformation.setBounds(435, 177, 34, 17);
            this.add(this.btnTransformation);
            this.labAttribute = new JLabel();
            this.labAttribute.setBounds(278, 95, 194, 74);
            this.add(this.labAttribute);
            this.labResistance = new JLabel();
            this.labResistance.setBounds(324, 177, 116, 16);
            this.labResistance.setForeground(Color.YELLOW);
            this.labResistance.setFont(new Font("微软雅黑", 0, 14));

            this.add(this.labResistance);this.btnGevPal = new LingbaoPagingBtn("inkImg/hongmu/1_png.button.btn_xy.png", 1, UIUtils.COLOR_YELLOW, UIUtils.TEXT_HY88,11, "装备伙伴");
            this.btnGevPal.setBounds(120, 65, 80, 30);
            this.add(this.btnGevPal);
            int i;
            for (i = 0; i < 5; ++i) {
                this.RuneListLabel[i] = new JLabel();
                this.RuneListLabel[i].addMouseListener(new LingFaFuSkill(true, i));
                this.RuneListLabel[i].setIcon(this.fushiimg);
                this.SkillsListLabel[i] = new JLabel();
                this.SkillsListLabel[i].addMouseListener(new LingFaFuSkill(false, i));
                this.SkillsListLabel[i].setIcon(this.skillimg);
                if (this.Flag < 5 && this.count == 1) {
                    if (i == 4) {
                        this.RuneListLabel[i].setBounds(288 + this.Flag * 37, 230, 26, 26);
                    } else {
                        this.RuneListLabel[i].setBounds(287 + this.Flag * 37, 230, 26, 26);
                    }

                    this.SkillsListLabel[i].setBounds(284 + this.Flag * 39, 299, 28, 28);
                    ++this.Flag;
                    this.add(this.RuneListLabel[i]);
                    this.add(this.SkillsListLabel[i]);
                }
            }
            this.btnLast1 = new LingbaoPagingBtn("inkImg/hongmu/2/29_png.button.btn_8.png", 1, 0, null);
            this.btnLast1.setBounds(215, 449, 20, 21);
            this.add(this.btnLast1);
            this.btnNext1 = new LingbaoPagingBtn("inkImg/hongmu/2/36_png.button.btn_7.png", 1, 1, null);
            this.btnNext1.setBounds(235, 449, 20, 21);
            this.add(this.btnNext1);
            this.btnLast2 = new LingbaoPagingBtn("inkImg/hongmu/2/29_png.button.btn_8.png", 1, 2, null);
            this.btnLast2.setBounds(447, 449, 20, 21);
            this.add(this.btnLast2);
            this.btnNext2 = new LingbaoPagingBtn("inkImg/hongmu/2/36_png.button.btn_7.png", 1, 3, null);
            this.btnNext2.setBounds(467, 449, 20, 21);
            this.add(this.btnNext2);
            for (i = 0; i < 8; ++i) {
                this.LingbaoListLabel[i] = new JLabel();
                this.MagicListLabel[i] = new JLabel();
                if (this.Flag1 < 4 && this.count1 == 1) {
                    this.LingbaoListLabel[i].setBounds(48 + this.Flag1 * 51, 346, 48, 48);
                    this.LingbaoListLabel[i].addMouseListener(new LingFaFanYeMouslisten(true, i));
                    this.MagicListLabel[i].setBounds(282 + this.Flag1 * 51, 346, 48, 48);
                    this.MagicListLabel[i].addMouseListener(new LingFaFanYeMouslisten(false, i));
                    ++this.Flag1;
                    this.add(this.LingbaoListLabel[i]);
                    this.add(this.MagicListLabel[i]);
                }

                if (this.Flag1 < 4 && this.count1 == 2) {
                    this.LingbaoListLabel[i].setBounds(48 + this.Flag1 * 51, 397, 48, 48);
                    this.LingbaoListLabel[i].addMouseListener(new LingFaFanYeMouslisten(true, i));
                    this.MagicListLabel[i].setBounds(282 + this.Flag1 * 51, 397, 48, 48);
                    this.MagicListLabel[i].addMouseListener(new LingFaFanYeMouslisten(false, i));
                    ++this.Flag1;
                    this.add(this.LingbaoListLabel[i]);
                    this.add(this.MagicListLabel[i]);
                } else if (this.Flag1 == 4) {
                    this.Flag1 = 0;
                    ++this.count1;
                }
            }
        }
    }

    public void shuxingzhanshi(Lingbao lingbao) {
        int i;
        if (lingbao != null) {
            this.lingimg = RoleLingFa.lingbaoimg(lingbao.getSkin(), -1, -1);

            for (i = 0; i < 5; ++i) {
                if (lingbao.getFusum() > i) {
                    this.RuneListLabel[i].setIcon(null);
                } else {
                    this.RuneListLabel[i].setIcon(this.fuskillopen(true));
                }
            }

            int size;
            String[] v;
            if (lingbao.getFushis() != null && !"".equals(lingbao.getFushis())) {
                v = lingbao.getFushis().split("\\|");

                for (size = 0; size < v.length; ++size) {
                    Goodstable goodstable = GoodsListFromServerUntil.fushis.get(new BigDecimal(Integer.parseInt(v[size])));
                    if (goodstable != null) {
                        ImageIcon imageIcon = new ImageIcon("inkImg/old/lingbao/msg/" + goodstable.getSkin() + ".png");
                        this.RuneListLabel[size].setIcon(imageIcon);
                    }
                }
            }

            for (i = 0; i < 5; ++i) {
                if (lingbao.getSkillsum() > i) {
                    this.SkillsListLabel[i].setIcon(null);
                } else {
                    this.SkillsListLabel[i].setIcon(this.fuskillopen(false));
                }
            }

            v = null;
            if (lingbao.getSkills() != null) {
                v = lingbao.getSkills().split("\\|");
            }

            if (v != null) {
                for (size = 0; size < v.length; ++size) {
                    ImageIcon imageIcon = this.skillskin(v[size].split("=")[0]);
                    imageIcon.setImage(imageIcon.getImage().getScaledInstance(33, 33, 1));
                    this.SkillsListLabel[size].setIcon(imageIcon);
                }
            }

            this.labQuality.setText(lingbao.getBaoquality());
            this.labCurrentlel.setText(lingbao.getLingbaolvl() + "级");
            size = (int) (lingbao.getLingbaoexe().doubleValue() / (double) ExpUtil.LFExp(lingbao.getLingbaolvl().intValue()) * 65.0D);
            if (size > 65) {
                size = 65;
            }

            this.s = size / 10;
            this.w = size % 10;
            this.labResistance.setText(lingbao.getKangxing());
            this.box = new ChatBox();
            this.box.addText("#G契合度" + lingbao.getLingbaoqihe() + " 活跃度" + lingbao.hyz() + "#W(" + lingbao.getBaoactive() + ")", 210);
            this.box.addText("#G速度" + lingbao.spz() + "#W(" + lingbao.getBaospeed() + ")" + " #G援助" + UserData.xiaoshu(lingbao.zyz() * 100.0D) + "#W(" + UserData.xiaoshu(lingbao.getAssistance() * 100.0D) + ")", 195);
            this.box.addText("#G回复" + UserData.xiaoshu(lingbao.replyz() * 100.0D) + "#W(" + UserData.xiaoshu(Double.parseDouble(lingbao.getBaoreply()) * 100.0D) + ")" + " #G落宝" + UserData.xiaoshu(lingbao.shotz() * 100.0D) + "#W(" + UserData.xiaoshu(lingbao.getBaoshot() * 100.0D) + ")", 195);
            this.box.addText("#G伤害" + UserData.xiaoshu(lingbao.apz() * 100.0D) + "#W(" + UserData.xiaoshu(Double.parseDouble(lingbao.getBaoap()) * 100.0D) + ")" + " #G抗落宝" + UserData.xiaoshu(lingbao.resistshopz() * 100.0D) + "#W(" + UserData.xiaoshu(lingbao.getResistshop() * 100.0D) + ")", 195);
        } else {
            this.lingimg = null;
            this.box.removemsg();

            for (i = 0; i < 5; ++i) {
                this.RuneListLabel[i].setIcon(this.fuskillopen(true));
                this.SkillsListLabel[i].setIcon(this.fuskillopen(false));
            }
        }

    }

    public ImageIcon fuskillopen(boolean type) {
        return type ? this.fushiimg : this.skillimg;
    }

    public ImageIcon skillskin(String skin) {
        return new ImageIcon("inkImg/old/lingbao/skill/" + skin + ".png");
    }

    public void sj(Lingbao lingbao) {
        if (lingbao != null) {
            Lingbao lingbao2 = RoleLingFa.getRoleLingFa().getChoseBao();
            if (lingbao2 == lingbao) {
                this.labCurrentlel.setText(lingbao.getLingbaolvl() + "级");
                int size = (int) (lingbao.getLingbaoexe().doubleValue() / (double) ExpUtil.LFExp(lingbao.getLingbaolvl().intValue()) * 65.0D);
                if (size > 65) {
                    size = 65;
                }

                this.s = size / 10;
                this.w = size % 10;
            }

        }
    }

    @Override
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        if ("水墨UI".equals(MyIsif.getStyle())) {
            if (this.icon == null) {
                this.icon = new ImageIcon("inkImg/newbackground/B236.png");
            }

            g.drawImage(this.icon.getImage(), 0, 0, 538, 469, this);
            if (this.lingimg != null) {
                for (int i = 0; i < this.s; ++i) {
                    g.drawImage(this.dian.getImage(), 185 + 10 * i, 277, 10, 7, null);
                }

                g.drawImage(this.dian.getImage(), 185 + this.s * 10, 277, this.w, 7, null);
                g.drawImage(this.lingimg.getImage(), 125, 95, 120, 120, this);
                Graphics g2 = g.create(304, 77, this.box.getWidth(), this.box.getHeight());
                this.box.paint(g2);
                g2.dispose();
                Graphics g3 = g.create(this.boxx, this.boxy, this.boxw, this.boxh);
                this.zsbox.paint(g3);
                g3.dispose();
            }
            RoleLingFa.getRoleLingFa().drawL(g, 75, 333);
            RoleLingFa.getRoleLingFa().drawF(g, 306, 333);


        } else {
            if (this.icon == null) {
                this.icon = new ImageIcon("inkImg/hongmu/2/灵宝查看.png");
            }

            g.drawImage(this.icon.getImage(), 0, 0, 512, 496, this);
            if (this.lingimg != null) {
                for (int i = 0; i < this.s; ++i) {
                    g.drawImage(this.dian.getImage(), 162 + 10 * i, 292, 10, 3, null);
                }

                g.drawImage(this.dian.getImage(), 162 + this.s * 10, 292, this.w, 3, null);
                g.drawImage(this.lingimg.getImage(), 95, 95, 120, 120, this);
                Graphics g2 = g.create(280, 90, this.box.getWidth(), this.box.getHeight());
                this.box.paint(g2);
                g2.dispose();
                Graphics g3 = g.create(this.boxx, this.boxy, this.boxw, this.boxh);
                this.zsbox.paint(g3);
                g3.dispose();
            }

            RoleLingFa.getRoleLingFa().drawL(g, 48, 346);
            RoleLingFa.getRoleLingFa().drawF(g, 282, 346);
        }

    }

    public void zsskill(String v, boolean type, int x, int y) {
        this.zsbox.removemsg();
        String[] vs = v.split("=");
        this.zsbox.addText("#W" + vs[0], 250);
        this.zsbox.addText("#Y【组合技能】: " + vs[1] + "人合技", 250);
        this.zsbox.addText("#Y【组合类型】: 攻击类", 250);
        if (type) {
            this.zsbox.addText("#Y【目标数量】: " + (Integer.parseInt(vs[1]) + 1), 250);
        } else {
            this.zsbox.addText("#Y【目标数量】: " + vs[1], 250);
        }

        this.zsbox.addText("#G目标剩余法量越低伤害越高", 250);
        this.boxw = this.zsbox.getWidth();
        this.boxh = this.zsbox.getHeight();
        this.boxx = x - this.zsbox.getWidth() / 2;
        this.boxy = y - this.boxh - 5;
    }

    public void zsfs(Goodstable goodstable) {
        this.zsbox.removemsg();
        this.boxx = 0;
        this.boxy = 0;
        this.boxw = 0;
        this.boxh = 0;
    }

    public void removemsg() {
        this.zsbox.removemsg();
    }

    public JLabel getLabLingbao() {
        return this.labLingbao;
    }

    public void setLabLingbao(JLabel labLingbao) {
        this.labLingbao = labLingbao;
    }

    public JLabel getLabQuality() {
        return this.labQuality;
    }

    public void setLabQuality(JLabel labQuality) {
        this.labQuality = labQuality;
    }

    public JLabel getLabCurrentlel() {
        return this.labCurrentlel;
    }

    public void setLabCurrentlel(JLabel labCurrentlel) {
        this.labCurrentlel = labCurrentlel;
    }

    public JLabel getLabAttribute() {
        return this.labAttribute;
    }

    public void setLabAttribute(JLabel labAttribute) {
        this.labAttribute = labAttribute;
    }

    public JLabel getLabResistance() {
        return this.labResistance;
    }

    public void setLabResistance(JLabel labResistance) {
        this.labResistance = labResistance;
    }

    public JLabel[] getRuneListLabel() {
        return this.RuneListLabel;
    }

    public void setRuneListLabel(JLabel[] runeListLabel) {
        this.RuneListLabel = runeListLabel;
    }

    public JLabel[] getSkillsListLabel() {
        return this.SkillsListLabel;
    }

    public void setSkillsListLabel(JLabel[] skillsListLabel) {
        this.SkillsListLabel = skillsListLabel;
    }

    public JLabel[] getLingbaoListLabel() {
        return this.LingbaoListLabel;
    }

    public void setLingbaoListLabel(JLabel[] lingbaoListLabel) {
        this.LingbaoListLabel = lingbaoListLabel;
    }

    public JLabel[] getMagicListLabel() {
        return this.MagicListLabel;
    }

    public void setMagicListLabel(JLabel[] magicListLabel) {
        this.MagicListLabel = magicListLabel;
    }

    public ChatBox getZsbox() {
        return this.zsbox;
    }

    public void setZsbox(ChatBox zsbox) {
        this.zsbox = zsbox;
    }
}
